package com.casestudy.projectscheduler.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.casestudy.projectscheduler.common.SchedulerHibernateDaoSupport;
import com.casestudy.projectscheduler.dto.ProjectDto;

@Repository("projectDao")
public class MySqlProjectDao extends SchedulerHibernateDaoSupport implements ProjectDao {

	public List<ProjectDto> getProjects() {
		return getHibernateTemplate().find("from ProjectDto");
	}
}
